package data;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author abosancic
 */
import com.etfbl.net.dao.DAODrzava;
import com.etfbl.net.dto.Drzava;
import java.util.List;
 
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
 
@ManagedBean(name = "carsBean")
@ViewScoped
public class CarsBean {
    /**
     *
     */
    private int currentCarIndex;
    private Object editedCar;
    private int page = 1;
 
    private int clientRows;

    public List<Drzava> getItems() {
        return new DAODrzava().findAll();
    }
 
    public int getCurrentCarIndex() {
        return currentCarIndex;
    }
 
    public void setCurrentCarIndex(int currentCarIndex) {
        this.currentCarIndex = currentCarIndex;
    }
 
    public Object getEditedCar() {
        return editedCar;
    }
 
    public void setEditedCar(Object editedCar) {
        this.editedCar = editedCar;
    }
 
    public int getClientRows() {
        return clientRows;
    }
 
    public void setClientRows(int clientRows) {
        this.clientRows = clientRows;
    }
    
    public int getPage() {
        return page;
    }
 
    public void setPage(int page) {
        this.page = page;
    }
}
